-
Notifications
You must be signed in to change notification settings - Fork 27
The great Babel 7.0 migration #635
Conversation
This will end up closing #567. |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
], | ||
"plugins": [ | ||
["relay", {"compat": true, "schema": "app/graph/schema.json"}] | ||
["relay", {"compat": true, "schema": "app/graph/schema.json"}], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won’t need this anymore!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, really? Can it just be dropped?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait — sorry, I was thinking about webpack when I wrote this lol. Excuse me, I haven’t had a coffee yet 🙄
"@babel/polyfill": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/preset-flow": "^7.0.0", | ||
"@babel/preset-react": "^7.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol babel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean I consider this on us for using stage-0
;P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are almost certainly some things we can drop from this list, but this is what we had so I’m keeping them for now. We can make more informed decisions about it in future.
Updates us to Babel 7.0, keeping behaviour otherwise the same.
We need to migrate to https://github.com/gaearon/react-hot-loader at some point anyway, the stuff we were using was multiple years' abandoned!
Updates us to Babel 7.0, keeping behaviour otherwise the same.
One thing we lose in this transition is the React-specific hot reloading infrastructure, which I don’t believe worked properly as of Webpack 3, let alone version 4. There are new ways to accomplish it which we can explore in a future PR.
The MyBuilds fixes will also be part of completion of #634.